package nautilus.moneykeeper.dto;

import java.util.Date;

public class Account extends NamedObject{
	private String _number;
	private long _balance;
	private AccountType _type;
	private CurrencyUnit _unit;
	private Date _datetime;
	private String _description;
	
	public void setNumber(String number){
		_number = number;
	}
	
	public String getNumber(){
		return _number;
	}
	
	public Account(){
		_id = 0;
		_name = null;
		_balance = 0;
		_type = null;
		_datetime = new Date();
		_description = null;
	}
	
	public void setBalance(long balance){
		_balance = balance;
	}
	
	public long getBalance(){
		return _balance;
	}
	
	public void setType(AccountType type){
		_type = type;
	}
	
	public AccountType getType(){
		return _type;
	}
	
	public void setCurrencyUnit(CurrencyUnit unit){
		_unit = unit;
	}
	
	public CurrencyUnit getCurrencyUnit(){
		return _unit;
	}
	
	public void setDateTime(Date datetime){
		_datetime = datetime;
	}
	
	public Date getDateTime(){
		return _datetime;
	}
	
	public void setDescription(String description){
		_description = description;
	}
	
	public String getDescription(){
		return _description;
	}
}
